        <div id="masthead">
            <div id="masthead-utility">
              <a href="<?php echo url_for('@homepage') ?>" title="Astolfo Content Manager" style="border: 0; float: left; padding: 0;"><img id="logoA" src="/images/ast.jpg" alt="Astolfo Content Manager" style="height:35px;"></a>
                <?php if($sf_user->isAuthenticated()): ?>
                <strong><?php echo $sf_user->getName(); ?> (Funda&ccedil;&atilde;o Padre Anchieta (TV Cultura))</strong>
                <?php endif; ?>
                <a class="start" href="https://spreadsheets.google.com/viewform?key=ttTqfA0XBz9_hb41cLNjwiw" target="_blank">Opine sobre o Astolfo!</a>
                <?php if($sf_user->isAuthenticated()): ?>
                <?php echo link_to('Configura&ccedil;&otilde;es', 'configuration/index'); ?>
                <?php endif; ?>
                <a href="https://docs.google.com/document/d/1e7GoehkwqHauCT_WuPUshk-DfQSyJyfMPXE0aCzrKHI/edit?hl=en&authkey=CNXGspIC" target="_blank">Ajuda</a>
                <?php if($sf_user->isAuthenticated()): ?>
				        <?php echo link_to('Sair', 'logout/index', array('class'  => 'end')); ?>
				        <?php endif; ?>
            </div>
            
            <div id="bar" class="yt-navbar">
            <?php if($sf_user->isAuthenticated()): ?>
            	<?php
              $c = 'yt-navbar-item';
              $m = $sf_params->get('module');

              /*
              echo link_to('Dashboard', 'dashboard/index', array(
                'class'  => $m=='dashboard' ? $c.' yt-navbar-item-current' : $c
              ));
              
              echo link_to('Busca', 'search/index', array(
                'class'  => $m=='search' ? $c.' yt-navbar-item-current' : $c
              ));
              */

              echo link_to('To-do', 'todo/index', array(
                'class'  => $m=='todo' ? $c.' yt-navbar-item-current' : $c
              ));

              
              if(($sf_user->hasPermission('admin')) || ($sf_user->hasPermission('editor'))) {
                echo link_to('Usu&aacute;rios', 'guard/users', array(
                  'class'  => $m=='sfGuardUser' ? $c.' yt-navbar-item-current' : $c
                ));
              }
              
              
              if($sf_user->hasPermission('admin')){
                
                echo link_to('Organiza&ccedil;&otilde;es', 'organization/index', array(
                  'class'  => $m=='organization' ? $c.' yt-navbar-item-current' : $c
                ));
                
                echo link_to('Canais', 'channel/index', array(
                  'class'  => $m=='channel' ? $c.' yt-navbar-item-current' : $c
                ));
                
              }

              if(($sf_user->hasPermission('admin')) || ($sf_user->hasPermission('editor'))) {
                echo link_to('Categorias', 'category/index', array(
                  'class'  => $m=='category' ? $c.' yt-navbar-item-current' : $c
                ));
              }


              if(($sf_user->hasPermission('admin')) || ($sf_user->hasPermission('editor'))) {
                echo link_to('Grade', 'schedule/index', array(
                  'class'  => $m=='schedule' ? $c.' yt-navbar-item-current' : $c
                ));
                echo link_to('Programas', 'program/index', array(
                  'class'  => $m=='program' ? $c.' yt-navbar-item-current' : $c
                ));
                echo link_to('Sites', 'site/index', array(
                  'class'  => $m=='site' || $m=='section' || $m=='block' || $m=='display' ? $c.' yt-navbar-item-current' : $c
                ));
              }
              
              if($sf_user->hasPermission('admin')){
                echo link_to('Image Usage', 'image_usage/index', array(
                  'class'  => $m=='image_usage' ? $c.' yt-navbar-item-current' : $c
                ));
      
                echo link_to('Tipos de Asset', 'assettype/index', array(
                  'class'  => $m=='assettype' ? $c.' yt-navbar-item-current' : $c
                ));

              }

              if(($sf_user->hasPermission('admin')) || ($sf_user->hasPermission('editor'))) {
                echo link_to('Dropbox', 'video_dropbox/index', array(
                  'class'  => $m=='video_dropbox' ? $c.' yt-navbar-item-current' : $c
                ));
              }

              echo link_to('Uploads', 'upload/index', array(
                'class'  => $m=='upload' ? $c.' yt-navbar-item-current' : $c
              ));

              echo link_to('Assets', 'asset/index', array(
                'class'  => $m=='asset' ? $c.' yt-navbar-item-current' : $c
              ));

              echo link_to('Tweet Monitor', 'tweet_monitor/index', array(
                'class'  => $m=='tweet_monitor' ? $c.' yt-navbar-item-current' : $c
              ));
              
              echo link_to('Sony', 'sony/index', array(
              	'class'  => $m=='sony' ? $c.' yt-navbar-item-current' : $c
							));
              
              if($sf_user->hasPermission('admin')) {
                echo link_to('Log', 'log/index', array(
                  'class'  => $m=='log' ? $c.' yt-navbar-item-current' : $c
                ));
              }
      				?>

            <?php endif; ?>

            </div>
        </div>
